package com.yiyi.credit.manage.abutment.common.converter;


import com.yiyi.credit.manage.abutment.common.utils.DateUtil;

import java.util.Date;


public class TimestampToStringConverter implements FieldConverter<Long> {
    @Override
    public String convert(Long obj) {
        if (obj == null)
            return "";
        return DateUtil.dateToString(DateUtil.DATE_TIME_PATTERN, new Date(obj));
    }
}
